package com.say.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.say.bean.domain.Trace;
import com.say.bean.domain.User;
import com.say.service.TraceService;
import com.say.utils.UserUtil;

@Controller
@RequestMapping("/wensay/album")
public class ApiAlbumController extends BaseController {

	@Autowired
	protected TraceService traceService;
	
	//聊天页面
	@RequestMapping()
	public String say(Model model){
		User user = UserUtil.getUser(request);
		
		traceService.save(new Trace(user.getId(),"0.0.0.0","访问相册页面"));
		return "wensay/album";
	}
	
	
}
